<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.medicalsystem.wx.model.UserModel"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
			 UserModel m=(UserModel)request.getSession().getAttribute("userModel");
			 int cursex=m.getSex();
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<title>婚育史</title>
<meta name="viewport"
	content="width=device-width,initial-scale=1,user-scalable=0">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="电子病历,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="<%=basePath%>css/weui.css" />
<link rel="stylesheet" href="<%=basePath%>css/example.css" />
<!-- <script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script> -->
<!-- <script type="text/javascript" src="<%=basePath%>js/jquery.js"></script> -->
<!-- <script type="text/javascript" src="js/history.js"></script> -->
<style type="text/css">
.weui_label {
	width: 8em
}
</style>
</head>
<script type="text/javascript">
var basePath="<%=basePath%>";
var cursex=<%=cursex%>;
console.log(cursex);
	$(document).ready(function() {
	if(cursex==0){
	$(".femal").hide();
	}else{
	$(".femal").show();
	}
	
		var menstrualHistory = $("#menstrualHistory").val();
		if (menstrualHistory != "") {
			$("#yuejing").show();
		}
	});
	function localSel() {
		var localDiseaseSel = $("#localDiseaseSel").val();
		if(localDiseaseSel==1){
		$("#localDisease").show();
		}else{
			$("#localDisease").hide();
		}
	}
	//忽略
	function ignore(){
		 pop1();
	}
	
		function pop1(){
    var w_height = $(window).height();
    $('.theleftmenu').css('height',w_height);
    $('.theleftmenu').css('display','block');
      $(".historymenu").hide();
       setTimeout(function(){
		$('.historymenu,.bg_mark').css('display','none');
		$('.historymenu .leftmenu_con ').css('display','none');
							},200);
//       弹出边菜单
    $('.theleftmenu .bg_mark').css('display','block');
    
    $('.theleftmenu .theleftmenu_con ' ).stop().animate({ left: '0' }, 400);
     
}
</script>
<body ontouchstart>
	<div class="container js_container"></div>
		<!-- 个人病史开始 -->
		<div class="page" id="personHistory">
			<div class="bd">
			<form action="">
				<div class="weui_grids">
				<h1 class="page_title" style="color:#225fba">婚育病史</h1>
					<div class="weui_cells_title">
						
					</div>

					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 婚姻：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="marriage"
								id="marriage">

								<option value="0"
									<c:if test="${bean.marriage==0 }">selected="selected"</c:if>>未婚</option>
								<option value="1"
									<c:if test="${bean.marriage==1 }">selected="selected"</c:if>>已婚</option>
							</select>
						</div>
					</div>
					
				<div class="weui_cell femal">
						<div class="weui_cell_hd">
							<label for="profession" class="weui_label"><span
								style="color: red;">*</span>月经初潮:</label>
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" type="number" name="menophania"
								id="menophania" placeholder="请输入月经初潮" value="${bean.menophania }" style="width: 80%">岁
						</div>
					</div>
					<div class="weui_cell femal">
						<div class="weui_cell_hd">
							<label for="profession" class="weui_label"><span
								style="color: red;">*</span>持续时间:</label>
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" type="text" name="continueTime"
								id="continueTime" placeholder="请输入持续时间" value="${bean.continueTime }" >
						</div>
					</div>
					<div class="weui_cell femal">
						<div class="weui_cell_hd">
							<label for="profession" class="weui_label"><span
								style="color: red;">*</span>间隔时间:</label>
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" type="text" name="intervalTime"
								id="intervalTime" placeholder="请输入间隔时间" value="${bean.intervalTime }" >
						</div>
					</div>

					<div class="weui_cell weui_cell_select weui_select_after femal">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 是否绝经：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="pausimenia"
								id="pausimenia">

								<option value="0"
									<c:if test="${bean.pausimenia==0 }">selected="selected"</c:if>>否</option>
								<option value="1"
									<c:if test="${bean.pausimenia==1 }">selected="selected"</c:if>>是</option>
							</select>
						</div>
					</div>
					<div class="weui_cell femal">
						<div class="weui_cell_hd">
							<label for="profession" class="weui_label"><span
								style="color: red;">*</span>末次月经时间:</label>
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" type="text" name="endMeniaTime"
								id="endMeniaTime" placeholder="请输入末次月经时间" value="${bean.endMeniaTime }" >
						</div>
					</div>
					<div class="weui_cell femal">
						<div class="weui_cell_hd">
							<label for="profession" class="weui_label"><span
								style="color: red;">*</span>妊娠次数:</label>
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" type="number" name="pregnancies"
								id="pregnancies" placeholder="请输入妊娠次数" value="${bean.pregnancies }" >
						</div>
					</div>
					<div class="weui_cell femal">
						<div class="weui_cell_hd">
							<label for="profession" class="weui_label"><span
								style="color: red;">*</span>生产次数:</label>
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" type="number" name="production"
								id="production" placeholder="请输入生产次数" value="${bean.production }" >
						</div>
					</div>
					<div class="weui_cell weui_cell_select weui_select_after femal">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 堕胎/死胎/难产：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="aborticide"
								id="aborticide">

								<option value="0"
									<c:if test="${bean.aborticide==0 }">selected="selected"</c:if>>无</option>
								<option value="1"
									<c:if test="${bean.aborticide==1 }">selected="selected"</c:if>>有</option>
							</select>
						</div>
					</div>
	<input type="reset" style="display:none;" /> 
				</div>
				
			</div>
			</form>
					<div class="button_sp_area" style="text-align:-webkit-center;">
						 <a href="javascript:;"
							class="weui_btn weui_btn_mini weui_btn_primary" onclick="ignore();">忽略</a>
							<a href="javascript:;"
							class="weui_btn weui_btn_mini weui_btn_primary" onclick="topreviousHis();">上一步</a>
						 <a href="javascript:;"
							class="weui_btn weui_btn_mini weui_btn_primary" onclick="tofamilyHis();">下一步</a>
					</div>
		</div>
		<!-- 个人病史结束 -->


	
	
	<!--     toast开始 -->
						<div id="loadingToast" class="weui_loading_toast"
							style="display: none;">
							<div class="weui_mask_transparent"></div>
							<div class="weui_toast">
								<div class="weui_loading">
									<div class="weui_loading_leaf weui_loading_leaf_0"></div>
									<div class="weui_loading_leaf weui_loading_leaf_1"></div>
									<div class="weui_loading_leaf weui_loading_leaf_2"></div>
									<div class="weui_loading_leaf weui_loading_leaf_3"></div>
									<div class="weui_loading_leaf weui_loading_leaf_4"></div>
									<div class="weui_loading_leaf weui_loading_leaf_5"></div>
									<div class="weui_loading_leaf weui_loading_leaf_6"></div>
									<div class="weui_loading_leaf weui_loading_leaf_7"></div>
									<div class="weui_loading_leaf weui_loading_leaf_8"></div>
									<div class="weui_loading_leaf weui_loading_leaf_9"></div>
									<div class="weui_loading_leaf weui_loading_leaf_10"></div>
									<div class="weui_loading_leaf weui_loading_leaf_11"></div>
								</div>
								<p class="weui_toast_content">保存中...</p>
							</div>
						</div>

						<div id="toast" style="display: none;">
							<div class="weui_mask_transparent"></div>
							<div class="weui_toast">
								<i class="weui_icon_toast"></i>
								<p class="weui_toast_content" id="info">保存成功</p>
							</div>
						</div>
						<!--     toast结束 -->
</body>
</html>
